<extend name="_Layout/main"/>
<block name="style">

</block>
<block name="main">
    <div class="builder-container builder-form-container">
        <div class="row">
            <div class="col-xs-12">
                <div class="table-responsive">
                    <h3>{$listname}</h3>
                    <a style="margin-bottom: 10px;"   href="{:U('Admin/User/dklist')}&select=1" class="btn btn-success">全部</a>
                    <a style="margin-bottom: 10px;"  href="{:U('Admin/User/dklist')}&select=2" class="btn btn-default">等待配对</a>
                    <a style="margin-bottom: 10px;"  href="{:U('Admin/User/dklist')}&select=3" class="btn btn-default">已配对</a>
                    <a style="margin-bottom: 10px;"  href="{:U('Admin/User/dklist')}&select=4" class="btn btn-default">超时关闭</a>
                    <a style="margin-bottom: 10px;"  href="{:U('Admin/User/dklist')}&select=5" class="btn btn-default ">交易中</a>
                    <a style="margin-bottom: 10px;"  href="{:U('Admin/User/dklist')}&select=6" class="btn btn-default">交易成功</a>
                    <a style="margin-bottom: 10px;"  href="{:U('Admin/User/dklist')}&select=7" class="btn btn-default">已打款</a>
                    <a style="margin-bottom: 10px;"  href="{:U('Admin/User/dklist')}&select=8" class="btn btn-default">待抢单</a>
                    <a style="margin-bottom: 10px;"  href="{:U('Admin/User/dklist')}&select=10" class="btn btn-default">可以匹配</a>
                    <a style="margin-bottom: 10px;"  href="{:U('Admin/User/dklist')}&select=11" class="btn btn-default">冻结中</a>
                    <div class="col-xs-12 col-sm-3" style="float:right;">
                        <div class="input-group search-form">
                            <form class="input-group search-form" method="post" action="{:U('Admin/User/dklist')}">
                                <input type="text" name="keyword" class="search-input form-control" value="" placeholder="用户名/订单号/金额/会员id">
                                <span class="input-group-btn"><button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button></span>
                            </form>
                        </div>
                    </div>
                    <table class="table table-condensed">
                        <thead>
                        <if condition="$typenum eq 1">
                        <tr class="success">
                            <th>序号</th>
                            <th>会员名称</th>
                            <th>订单号</th>
                            <th>付款金额</th>
                            <th>利息</th>
                            <th>创建时间</th>
                            <th>已配对金额</th>
                            <th>已交易金额</th>
                            <th>配对状态</th>
                            <th>查看</th>
                        </tr>
                            <else />
                            <tr class="success">
                                <th>序号</th>
                                <th>订单号</th>
                                <th>付款金额</th>
                                <th>创建时间</th>
                                <th>交易状态</th>
                                <th>查看</th>
                            </tr>
                        </if>
                        </thead>
                        <tbody>
                        <volist name="data_list" id="sf">
                            <if condition="$typenum eq 1">
                            <tr>
                                <th scope="row">{$i}</th>
                                <td>{$sf.username}</td>
                                <td>{$sf.lbw_order_pipei}</td>
                                <td>{$sf.total_forever}</td>
                                <td>{$sf.fklixi}</td>
                                <td>{$sf.creattime}</td>
                                <td>{$sf.yipipei_money}</td>
                                <td>{$sf.yijy_moeny}</td>
                                <td><if condition="$sf.peidui_cishu eq 0">未匹配<else />已匹配</if></td>
                                <td><a href="{:U('Admin/User/dklisttwo')}&type={$typenum}&dh={$sf.lbw_order_pipei}" class="btn btn-danger">查看</a></td>
                            </tr>
                                <else />
                                <tr>
                                    <th scope="row">{$i}</th>
                                    <td>{$sf.dk_lbw_order_pipei}</td>
                                    <td>{$sf.dk_money_total}</td>
                                    <td>{$sf.sf_dd_crt_time}</td>
                                    <td><if condition="$sf.sf_jy_status eq 0">等待打款<elseif condition="$sf.sf_jy_status eq 1"/>已打款<elseif condition="$sf.sf_jy_status eq 2"/>完成交易<elseif condition="$sf.sf_jy_status eq 3"/>交易纠纷<elseif condition="$sf.sf_jy_status eq 4"/>等待处理<elseif condition="$sf.sf_jy_status eq 8"/>抢单状态<else />订单超时</if></td>
                                    <td><a href="#" data-toggle="modal" data-target=".lbw_mingxi{$i}" class="btn btn-danger">查看</a></td>
                                    <div class="modal fade bs-example-modal-lg lbw_mingxi{$i}" tabindex="-1"  role="dialog" aria-labelledby="myLargeModalLabel">
                                        <div class="modal-dialog modal-lg">
                                            <div class="modal-content" style="border-radius:10px;">
                                                <div class="modal-header" style="background: #44CDAF;color: #FFF;border-bottom: 1px solid #FFF;border-top-left-radius: 10px;border-top-right-radius: 10px;">
                                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                                    <h3 class="modal-title">提供幫助明細</h3>
                                                </div>
                                                <div class="modal-body">
                                                    <div class="container-fluid">
                                                        <div class="panel panel-default">
                                                            <div class="panel-header" style="background: #F19307;color: #FFF;padding: 15px;font-weight: bold;">
                                                                公共部分</div>
                                                            <ul class="list-group">
                                                                <li class="list-group-item"><b>雙方交易號: </b>{$sf.dk_lbw_order_pipei}</li>
                                                                <li class="list-group-item"><b>雙方交易時間: {$sf.dk_creattime}</b></li>
                                                                <li class="list-group-item"><b>交易金額: </b>{$sf.dk_money_total}</li>
                                                                <li class="list-group-item"><b>交易方式: </b><if condition="$sf.dk_peiduifs eq 1"> 支付寶<elseif condition="$sf.dk_peiduifs eq 2"/>銀行卡<elseif condition="$sf.dk_peiduifs eq 3" />比特幣 <else />待更新</if></li>
                                                                <li class="list-group-item"><b>打款截圖: </b><if condition="$sf.dk_dakuan_status eq 0">暫無 <else /><a class="btn btn-danger" href="{$sf.dk_dakuan_img}">點擊查看打款截圖</a></if></li>
                                                                <li class="list-group-item"><b>雙方交易狀態: </b><if condition="$sf.sf_jy_status eq 0"> 等待對方打款<elseif condition="$sf.sf_jy_status eq 1"/>對方已打款<elseif condition="$sf.sf_jy_status eq 2"/>交易完成<else />交易糾紛中</if></li>
                                                            </ul>
                                                        </div>
                                                        <div class="panel panel-default">
                                                            <div class="panel-header" style="background: #44CDAF;color: #FFF;padding: 15px;font-weight: bold;">
                                                                您的個人信息</div>
                                                            <ul class="list-group">
                                                                <li class="list-group-item"><b>您的姓名: </b>{$sf.fk_name}</li>
                                                                <li class="list-group-item"><b>打款金額: </b>{$sf.dk_money_total}</li>
                                                                <li class="list-group-item"><b>銀行卡號: </b>{$sf.dk_bank_name}</li>
                                                                <li class="list-group-item"><b>銀行名稱: </b>{$sf.dk_bank_number}</li>
                                                                <li class="list-group-item"><b>支付寶賬號: </b>{$sf.dk_alipay}</li>
                                                                <li class="list-group-item"><b>手機號: </b>{$sf.dk_my_mobile}</li>
                                                                <li class="list-group-item"><b>上級手機號: </b>{$sf.dk_sj_mobile}</li>
                                                            </ul>
                                                        </div>
                                                        <div class="panel panel-default">
                                                            <div class="panel-header" style="background: #2646A1;color: #FFF;padding: 15px;font-weight: bold;">
                                                                獲得幫助的人信息</div>
                                                            <ul class="list-group">
                                                                <li class="list-group-item"><b>收款人的姓名: </b>{$sf.sk_name}</li>
                                                                <li class="list-group-item"><b>收款金額: </b>{$sf.dk_money_total}</li>
                                                                <li class="list-group-item"><b>銀行卡號: </b>{$sf.sk_bank_number}</li>
                                                                <li class="list-group-item"><b>銀行名稱: </b>{$sf.sk_bank_name}</li>
                                                                <li class="list-group-item"><b>支付寶賬號: </b>{$sf.sk_alipay}</li>
                                                                <li class="list-group-item"><b>手機號: </b>{$sf.sk_my_mobile}</li>
                                                                <li class="list-group-item"><b>上級手機號: </b>{$sf.sk_sj_mobile}</li>
                                                            </ul>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </tr>
                                </if>
                        </volist>
                        <tr>
                            <if condition="$typenum eq 1">
                            <td style="color:#c9302c;">总计金额:</td>
                            <td style="color:#c9302c;">{$moneytotal}元</td>
                            <td style="color:#c9302c;"></td>
                            <td style="color:#c9302c;"></td>
                            <td style="color:#c9302c;">已配金额:</td>
                            <td style="color:#c9302c;">{$moneyypp}元</td>
                            <td style="color:#c9302c;">订单数量:</td>
                            <td style="color:#c9302c;">{$total}单</td>
                            <else />
                                <td style="color:#c9302c;">总计金额:</td>
                                <td style="color:#c9302c;">{$moneytotal}元</td>
                                <td style="color:#c9302c;">订单数量:</td>
                                <td style="color:#c9302c;">{$total}单</td>
                            </if>
                        </tr>
                        </tbody>
                    </table>
                    <ul class="pagination">{$page}</ul>
                    </div>
                </div>
            </div>
        </div>
    </block>